package Jogo;

import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JPanel;


public class Game extends Applet{
	  private int w = 14;
	  private int h = 9;
	  int kpix=40, kapp=50;
	  
	  ControlGame controlGame;
	  ControlPanel controlPanel;
	  
	
	LeverageCanvas canvas;// = new LeverageCanvas();
	
	public void init() {
		controlGame = new ControlGame();
		canvas = new LeverageCanvas(controlGame);
		controlPanel = new ControlPanel();
		
		JButton button1 = new JButton("1");
		JButton button2 = new JButton("2");
		JButton button3 = new JButton("3");
		JButton button4 = new JButton("4");
		
		BorderLayout layout = new BorderLayout();
		this.setLayout(layout);
		
		setSize(w*kpix,h*kapp);
		setBackground(new Color(0,100,0));
		
		//this.add(canvas,layout.CENTER);	
		//this.add(controlPanel, layout.CENTER);
		this.add(controlPanel, layout.CENTER);
		this.add(button2, layout.SOUTH);
		this.add(canvas, layout.NORTH);
	}
	
}
